const resourcesBox = {
    // 素材配置
    fileConfig: {
        url: "store/album-info/config",
    },

    // 分组列表
    albumList: {
        url: "store/album/index",
    },
    // 分组添加
    albumAdd: {
        url: "store/album/add",
    },
    // 分组删除
    albumDel: {
        url: "store/album/del",
    },
    // 分组编辑
    albumEdit: {
        url: "store/album/edit",
    },
    // 数据列表
    dataList: {
        url: "store/album-info/index",
    },
    // 数据删除
    dataDel: {
        url: "store/album-info/del",
    },
    // 数据修改
    dataEdit: {
        url: "store/album-info/edit",
    },
    // 数据同步
    dataSync: {
        url: "mall-site-portal/album-info/materialUpload",
    },

}
export default {
    // 引用主程序的组件是否使用主程序的请求域名
    // componentsDomain: true,

    // 应用内部全局变量
    appGlobalData: {
        // 组件api配置
        componentsApiConfig: {
            SelectDataGoods: {
                // 商品列表 通过ids获取
                goodsItemInfo: {
                    url: "store/goods/choose-platform",// mall-site-portal/open/api/product/getProductLstByIds
                },
                // 商品列表分页
                goodsList: {
                    url: "store/goods/index",
                },
                // 省市区街道 根据条件查询省市区
                list: {
                    url: "store/address/select-address",
                },
                // 地址解析
                location: {
                    url: "store/address/location",
                    domain: "STORE_MAIN_DOMAIN",
                },
                addressInfo: {
                    url: "store/address/address",
                    domain: "STORE_MAIN_DOMAIN",
                },
                // 生成唯一标识
                generateCode: {
                    url: "store/qrcode/generateCode",
                    domain: "STORE_MAIN_DOMAIN",
                },
                // 获取小程序分享码
                getUnlimited: {
                    url: "store/qrcode/getUnlimited",
                    domain: "STORE_MAIN_DOMAIN",
                },
            },
            // 单选用户
            // SelectUser: {
            //     usersList: {
            //         url: "store/member/all",
            //         domain: "STORE_MAIN_DOMAIN"
            //     }
            // }
            // 单选用户
            SelectDataUsers: {
                usersList: {
                    url: "store/member/all",
                    domain: "STORE_MAIN_DOMAIN"
                },
                usersItemInfo: {
                    url: "mall-site-portal/member/getMemberByIds",
                    domain: "STORE_MAIN_DOMAIN"
                },
            }
        },
        selectResourcesImageApiConfig: {
            resourcesImageBox: {
                ...resourcesBox,

                // 素材创建
                createSubmit: {
                    url: "store/album-info/image",
                },

            },

            resourcesVideoBox: {
                ...resourcesBox,
                // 文件上传
                fileUpload: {
                    url: "store/common/upload"
                },
                // 封面上传
                imageUpload: {
                    url: "store/common/uploadBase64"
                },
                // 素材创建
                createSubmit: {
                    url: "store/album-info/video",
                },

            },

        },
    },
    componentsApiConsult: {
        
    },
}